package com.atguigu.chapter08.mixin

object MixInPro {
	def main(args: Array[String]): Unit = {
		val mySQL = new MySQL6 with DB6 {
			override var sal = 10
		}
	}
}

trait DB6 {
	var sal: Int //抽象字段
	var opertype: String = "insert"

	def insert(): Unit = {
	}
}

class MySQL6 {}

